<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录</title>
</head>
<body>
    登录页面
    <br>
    端口号:<span th:text="${#httpServletRequest.getLocalPort()}"></span>
    <form action="/doLogin" method="post">
        <label>
            用户名:<input type="text" name="username">
        </label>
        <br>
        <label>
            密码:<input type="password" name="password">
        </label>
        <br>
        <span th:text="${error}"></span>
        <br>
        <input type="submit" value="登录">
    </form>
</body>
</html>
